<%-- 
    Document   : header
    Created on : 25/06/2012, 18:28:43
    Author     : Daniel
--%>

<%@page import="java.util.List"%>
<%@page import="core.App"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    App.getInstance().initialize();
%>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Projeto BugBug</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

        <style>
            body{margin-top:50px;}            
        </style>

        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

    </head>
    <body>

        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="index.jsp">Sistema BugBug</a>

                    <div class="nav-collapse">
                        <ul class="nav">
                            <li ><a href="FrontController?action=abrirTicket">Abrir ticket</a></li>
                            <li ><a href="FrontController?action=projeto">Projetos</a></li>
                            <li><a href="FrontController?action=usuario">Usuarios</a></li>
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container">


            <!-- Intercepta mensagens de erro -->
            <%
                List<String> errors = App.getInstance().getErrors();
                if (!errors.isEmpty()) {
                    for (String error : errors) {
                        out.print("<div class='alert alert-error'><a class='close' data-dismiss='alert'>x</a>" + error);
                        out.println("</div>");
                    }
                }
                App.getInstance().clearError();

                List<String> messages = App.getInstance().getMessages();
                if (!messages.isEmpty()) {

                    for (String message : messages) {
                        out.println("<div class='alert alert-success'>");
                        out.print("<a class='close' data-dismiss='alert'>x</a>" + message);
                        out.println("</div>");
                    }
                }

                App.getInstance().clearMessage();

            %>






            <!-- Main hero unit for a primary marketing message or call to action -->
            <div class="hero-unit">

